package com.wulijie.responsibilitychain;

/**
 * @Author cui
 * @Data
 */
public class OneApprover extends Approver{
    public OneApprover(String name) {
        super(name);
    }

    @Override
    public void processMyRequest(MyRequest request) {
        if (request.getPrice() > 1000) {
            System.out.println(">1000");
        } else {
            approver.processMyRequest(request);
        }
    }
}
